package com.designpattern.builder.traditional;

/**
 * @author Liusr
 * @date 2023/3/30
 * @package com.designpattern.builder.traditional
 * @Description: 实体构建者类
 */
public class BenzCar extends CarBuilder{
	private final Car car;
	public BenzCar(String partA, String partB){
		car = new Car(partA,partB);
	}
	@Override
	public void setPartC() {
		car.setPartC("BenzPartC");
	}

	@Override
	public void setPartD() {
		car.setPartD("BenzPartD");
	}

	@Override
	public void setPartE() {
		car.setPartE("BenzPartE");
	}

	@Override
	public Car getCar() {
		return car;
	}
}
